<!DOCTYPE html>
<html lang="{{=T.accepted_language or 'en'}}" class="no-js"><!-- no-js need it for modernzr -->
<head>
	
	<meta charset="utf-8" />	
	<!-- www.phpied.com/conditional-comments-block-downloads/ -->
	<!--[if IE]><![endif]-->
	
	<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame 
	   Remove this if you use the .htaccess -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	
    <title>{{=response.title or request.application}}</title>
	
	<!-- http://dev.w3.org/html5/markup/meta.name.html -->
	<meta name="application-name" content="{{=request.application}}" />	
		
	<!-- Speaking of Google, don't forget to set your site up: http://google.com/webmasters -->
	<meta name="google-site-verification" content="" />
	
	<!--  Mobile Viewport Fix
	    j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag 
	device-width : Occupy full width of the screen in its current orientation
	initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height
	maximum-scale = 1.0 retains dimensions instead of zooming in if page width < device width
	-->
	<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
	
	<!-- Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references -->
    <link rel="shortcut icon" href="{{=URL(request.application,'static','favicon.ico')}}" type="image/x-icon">
	<link rel="apple-touch-icon" href="{{=URL(request.application,'static','favicon.png')}}">
	
	<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
	<script src="{{=URL(request.application,'static','js/modernizr-1.5.min.js')}}"></script>
		
	{{if i2p.config.static_css:}}
		{{response.files.append(URL(request.application,'static/layouts/%s'%i2p.siteinfo._get_layout(),'style.css'))}}
	{{else:}}
		{{=i2p.siteinfo.print_style_css()}}
	{{pass}}
	    
	{{include 'web2py_ajax.html'}}
	{{include 'scripts_common.html'}}
	
	{{ if is_user_an_admin():}}
		{{include 'scripts_admin.html'}}		
	{{pass}}

</head>

	<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->	
	<!--[if lt IE 7 ]> <body class="ie6"> <![endif]-->
	<!--[if IE 7 ]>    <body class="ie7"> <![endif]-->
	<!--[if IE 8 ]>    <body class="ie8"> <![endif]-->
	<!--[if IE 9 ]>    <body class="ie9"> <![endif]-->
	<!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->	
	
<div class="flash">{{=response.flash or ''}}</div>	


<div id="container">	
{{include}}		
</div>	


  <!--[if lt IE 7 ]>
    <script src="{{=URL(request.application,'static','js/dd_belatedpng.js?v=1')}}"></script>
  <![endif]-->

</body>
</html>

